﻿using System;
using System.Text;

namespace dotHTML.HTML {
    /// <summary>
    /// Represents a primitive HTML form.
    /// </summary>
    [Serializable]
    [Standalone]
    [Obsolete("Deprecated in HTML4 - use a <form> instead.")]
    public class IsIndex : Element {
        private string _prompt;

        /// <summary>
        /// Determines the prompt string for this control.
        /// </summary>
        public string Prompt {
            get { return _prompt; }
            set { _prompt = value; }
        }

        /// <summary>
        /// Gets a formatted string of all child elements of this element.
        /// </summary>
        /// <param name="sb">The StringBuilder to write this element's child
        /// data to.</param>
        protected override void WriteLocalAttributes(StringBuilder sb) {
            AttributeWriter.Write(sb, _prompt, "prompt");
        }
    }
}
